package com.codejam.mango.controller;

import com.codejam.mango.dao.model.SysUser;
import com.codejam.mango.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(value = "xxxxxxxx")
@RestController
public class UserController {

    @Autowired
    private SysUserService sysUserService;

    @ApiOperation(value = "xxx1",tags = {"tags"})
    @GetMapping(value = "findAll")
    public String  findAll(){
        List<SysUser> all = sysUserService.findAll();
        return all.size() + "";
    }

    @ApiOperation(value = "xxx2",tags = {"tags2"})
    @GetMapping(value = "findAll2")
    public String  findAll2(){
        List<SysUser> all = sysUserService.findAll();
        return all.size() + "";
    }
}
